
####################################################################################################

# Company       : Huizhou Desay SV Automotive Co., Ltd.

# Division      : Automotive Electronics, Desay Corporation

# Business Unit : Central Technology

# Department    : Advanced Development (Huizhou)

####################################################################################################

# 0. CMake Defs

cmake_minimum_required(VERSION 2.6 FATAL_ERROR)

cmake_policy(VERSION 2.6)

# 1. Project Name

project(app)

# 2. Project Env (Include/Lib Path, C/CXX/LD FLAGS)

include_directories("${CMAKE_CURRENT_SOURCE_DIR}/inc")

#link_directories("/usr/local/lib")
link_directories("${CMAKE_CURRENT_SOURCE_DIR}/lib")

set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11 -D_GLIBCXX_USE_NANOSLEEP")

add_definitions("-DLINUX_PC")

# 3. Project Build

set(APP_NAME "AvmSdk")

set(APP_SRC_FILES src/SVPMain.cpp
)

add_executable(${APP_NAME} ${APP_SRC_FILES})

#target_link_libraries(${APP_NAME} ${DATA_LIB_NAME})
target_link_libraries(${APP_NAME} pthread m rt dl libAvmSdk.so)


# 4. Project Install

install(TARGETS ${APP_NAME}
        RUNTIME DESTINATION ${CMAKE_CURRENT_SOURCE_DIR}/bin
        LIBRARY DESTINATION ${CMAKE_CURRENT_SOURCE_DIR}/bin
        ARCHIVE DESTINATION ${CMAKE_CURRENT_SOURCE_DIR}/bin)
